function Person() {

}

var p = new Person()

console.log(p instanceof Person);
console.log(Person.prototype.isPrototypeOf(p));

// 区别
var obj = {
  name: "yz",
  age: 18
}

var info = Object.create(obj)
console.log(obj.isPrototypeOf(info));
// obj不是函数
console.log(info instanceof obj);
